package de.lighti.starcraft;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

class TournamentModuleState {
    String selfName = "Error";
    String enemyName = "Error";
    String mapName = "Error";

    int frameCount = -1;
    int selfScore = -1;
    int enemyScore = -1;
    int timeOut55ms = -1;
    int timeOut1s = -1;
    int timeOut10s = -1;
    int gameElapsedTime = -1;
    int selfSurrender = -1;
    int selfWin = -1;
    int gameEnded = -1;
    int gameHourUp = -1;

    void readData( String filename ) throws IOException {
        BufferedReader br = null;
        try {
            br = new BufferedReader( new FileReader( filename ) );

            selfName = br.readLine();
            enemyName = br.readLine();
            mapName = br.readLine();
            frameCount = Integer.parseInt( br.readLine() );
            selfScore = Integer.parseInt( br.readLine() );
            enemyScore = Integer.parseInt( br.readLine() );
            timeOut55ms = Integer.parseInt( br.readLine() );
            timeOut1s = Integer.parseInt( br.readLine() );
            timeOut10s = Integer.parseInt( br.readLine() );
            gameElapsedTime = Integer.parseInt( br.readLine() );
            selfSurrender = Integer.parseInt( br.readLine() );
            selfWin = Integer.parseInt( br.readLine() );
            gameEnded = Integer.parseInt( br.readLine() );
            gameHourUp = Integer.parseInt( br.readLine() );

        }
        finally {
            if (br != null) {
                br.close();
            }

        }

    }

}
